package com.ql.util.express.instruction.detail;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ql.util.express.RunEnvironment;

public abstract class Instruction implements java.io.Serializable {

    private static final long serialVersionUID = 1361458333068300443L;
    protected static transient Log staticLog = LogFactory.getLog(Instruction.class);
    protected static transient Log log = staticLog;

    public void setLog(Log aLog) {
        if (aLog != null) {
            Instruction.log = aLog;
        }
    }

    public abstract void execute(RunEnvironment environment, List<String> errorList) throws Exception;
}
